package reflect;

public class ReflectDemo7 {
    public static void main(String[] args) throws Exception {
        Class cls = Class.forName("reflect.Person");
        if (cls.isAnnotationPresent(AutoCloseable.class)){
            System.out.println("被注解了");
        } else{
            System.out.println("没有被注解！");
        }

    }
}
